<script>
	export default {
		onLaunch: function() {
			console.log('App Launch');
		},
		onShow: function() {
			console.log('App Show');
			let token = uni.getStorageSync('loginStatus').token;
			let loveid = uni.getStorageSync('loveStatus').loveid;
			// 判断如果有token 进入首页
			// if(!token){
			// 	uni.reLaunch({
			// 		url:'/pages/login/login'
			// 	})
			// }
			
			if(token){
				if(!loveid){
					uni.reLaunch({
						url:'/pages/tabBar/bindRelation'
					})
				}
			}
		},
		onHide: function() {
			console.log('App Hide');
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "./common/css/style.scss";
	@import "./common/icon/iconfont.css";
</style>
